package com.battery.system.mapper;

import java.util.List;

import com.battery.system.base.BaseMapper;
import com.battery.system.domain.BO.PointsDetailBO;
import com.battery.system.domain.PointsDetail;
import com.battery.system.domain.VO.PointsDetailVO;
import org.apache.ibatis.annotations.Param;

/**
 * 积分明细Mapper接口
 *
 * @author battery
 * @date 2021-02-22
 */
public interface PointsDetailMapper extends BaseMapper<PointsDetail> {
    /**
     * 查询积分明细
     *
     * @param id 积分明细ID
     * @return 积分明细
     */
    public PointsDetail selectPointsDetailById(String id);

    /**
     * 查询积分明细列表
     *
     * @param pointsDetail 积分明细
     * @return 积分明细集合
     */
    public List<PointsDetail> selectPointsDetailList(PointsDetail pointsDetail);

    /**
     * 新增积分明细
     *
     * @param pointsDetail 积分明细
     * @return 结果
     */
    public int insertPointsDetail(PointsDetail pointsDetail);

    /**
     * 修改积分明细
     *
     * @param pointsDetail 积分明细
     * @return 结果
     */
    public int updatePointsDetail(PointsDetail pointsDetail);

    /**
     * 删除积分明细
     *
     * @param id 积分明细ID
     * @return 结果
     */
    public int deletePointsDetailById(String id);

    /**
     * 批量删除积分明细
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePointsDetailByIds(String[] ids);

    /**
     * @param pointsDetailBO
     * @return
     */
    List<PointsDetailVO> selectPointsDetailVOList(@Param("pointsDetailBO") PointsDetailBO pointsDetailBO);
}
